package com.nut.course.common;

import java.util.List;
import java.util.Map;

public final class HttpResult {

    final public int code;
    final public Map<String, List<String>> headers;
    final public String content;

    public HttpResult(int code, String content) {
        this.code = code;
        this.headers = null;
        this.content = content;
    }

    public HttpResult(int code, Map<String, List<String>> headers, String content) {
        this.code = code;
        this.headers = headers;
        this.content = content;
    }

    public int getCode() {
        return code;
    }

    public Map<String, List<String>> getHeaders() {
        return headers;
    }

    public String getContent() {
        return content;
    }
}
